package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketItemComment;

import cn.taoticket.fallback.TaoticketItemCommentClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-item-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketItemCommentClientFallBack.class)
public interface RestTaoticketItemCommentClient {

@RequestMapping(value = "/getTaoticketItemCommentById",method = RequestMethod.POST)
public TaoticketItemComment getTaoticketItemCommentById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketItemCommentListByMap",method = RequestMethod.POST)
public List<TaoticketItemComment>	getTaoticketItemCommentListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketItemCommentCountByMap",method = RequestMethod.POST)
public Integer getTaoticketItemCommentCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketItemComment",method = RequestMethod.POST)
public Integer qdtxAddTaoticketItemComment(@RequestBody TaoticketItemComment taoticketItemComment)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketItemComment",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketItemComment(@RequestBody TaoticketItemComment taoticketItemComment)throws Exception;
}
